www.gusucode.com > PHP展示型企业网站模板米拓整站源码 1.0PHP源码程序 > PHP展示型企业网站模板米拓整站源码 1.0/MetInfozs_v1.0/MetInfozs_v1.0/admin/content/feedback/editor.php

    <?php
# MetInfo Enterprise Content Management System 
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. 
$depth='../';
require_once $depth.'../login/login_check.php';
require_once ROOTPATH.'public/php/searchhtml.inc.php';
$backurl="../content/feedback/editor.php?anyid={$anyid}&lang={$lang}&class1={$class1}&id={$id}&customerid={$customerid}&classall={$classall}";
if($action=="editor"){
	$query = "update $met_feedback SET
						  useinfo            = '$useinfo',
						  class1             = '$class1',
						  readok             = '1'
						  where id='$id'";
	$db->query($query);
	metsave($backurl,'',$depth);
}else{
	if(!$class1){
		$feedback_list=$db->get_one("select * from $met_feedback where id='$id'");
		$class1=$feedback_list['class1'];
	}
	$query = "update $met_feedback SET
						  class1             = '$class1',
						  readok             = '1'
						  where id='$id'";
	$db->query($query);
	$feedback_list=$db->get_one("select * from $met_feedback where id='$id' and class1 = '$class1'");
	if(!$feedback_list)metsave('-1',$lang_dataerror,$depth);
	$feedback_list['customerid']=metidtype($feedback_list['customerid']);
	$query = "SELECT * FROM {$met_parameter} where module=8 and lang='{$lang}' and class1='$class1' order by no_order";
	$result = $db->query($query);
	while($list= $db->fetch_array($result)){
	$info_list=$db->get_one("select * from $met_flist where listid='$id' and paraid='$list[id]' and lang='$lang'");
	$list[content]=$list[type]==5?(($info_list[info]!='../upload/file/')?"<a href='../../".$info_list[info]."' target='_blank'>{$lang_clickview}</a>":$lang_filenomor):$info_list[info];
	$feedback_para[]=$list;
	}
	$fnam=$db->get_one("SELECT * FROM $met_column WHERE id='$class1' and lang='$lang'");
	foreach($settings_arr as $key=>$val){
		if($val['columnid']==$fnam['id'])$$val['name']=$val['value'];
	}
	$css_url=$depth."../templates/".$met_skin."/css";
	$img_url=$depth."../templates/".$met_skin."/images";
	include template('content/feedback/feedback_editor');
	footer();
}
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>